﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HandlingInput
{
    public class MessageSender
    {
        public delegate void GetEvent(object sender, object l_action);
        public static event GetEvent SetActionButton; // sender: house, l_action: danh sách các action

        public static void  excute(object sender, object action)
        {
            GetEvent handle = SetActionButton;
            if (handle != null)
                handle(sender, action);
        }

    }
}
